package csdj;

import com.lww.springcloudapi.pojo.TabHallSetmeal;
import csdj.mapper.TabHallSetmealMapper;
import csdj.service.TabHallSetmealService;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * 测试dao 和 service 的测试类
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class Test {
    @Autowired
    TabHallSetmealService service;

    @org.junit.Test
    public void text(){
        System.out.println("junit");
        TabHallSetmeal setmeal = new TabHallSetmeal();
        setmeal.setId(5);
        setmeal.setTitle("Test2");
        setmeal.setFlow(10240);
        setmeal.setConversationtime(600);
        setmeal.setMessage(100);
        setmeal.setMoney(30.00);
        //service.addSetMeal(setmeal);
        //service.updateSetMeal(setmeal);
        //service.deleteSetMeal(5);
        service.selectSeteal();
    }
}
